//
//  YGAgainPwdTableViewCell.m
//  yuanshangyiliao
//
//  Created by icholab on 2021/3/17.
//

#import "YGAgainPwdTableViewCell.h"


@interface YGAgainPwdTableViewCell()

@property(nonatomic, strong)UITextField *againPwdField;   //确认密码

@end



@implementation YGAgainPwdTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initView];
        [self initContraints];
    }
    return self;
}

- (void)initView{

    [self addContentView:self.againPwdField];
   
}


- (void)initContraints{
    [self.againPwdField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(self.contentSuperView.mas_height);
        make.width.mas_equalTo(200);
        make.height.mas_equalTo(self.contentSuperView.mas_height);
    }];
    
}

- (UITextField *)againPwdField{
    if (!_againPwdField) {
        _againPwdField =[[UITextField alloc] init];
        _againPwdField.font= [UIFont systemFontOfSize:14];
        _againPwdField.layer.borderWidth=0;
        _againPwdField.placeholder=@"6-16位字母、数字或符号组合";
        _againPwdField.textAlignment= NSTextAlignmentLeft;
        _againPwdField.delegate=self;
        [_againPwdField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
        
        
    }
    return _againPwdField;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
